﻿#pragma once
#include <hash_set>
#include <iostream>
#include <fstream>
#include <string>
using namespace std;

class Hash_set
{
private:
	hash_set<string> data;
	
public:
	Hash_set(string location)
	{
		cout << "begin ;" << endl;
		ifstream in(location);
		while(in.good())
		{
			string str;
			getline(in, str);

			data.insert(str);
		}

		in.close();
	}
	Hash_set() {}
	bool find(string& term)
	{
		hash_set<string>::iterator itr = data.find(term);
		if(itr != data.end())
			return true;
		else
			return false;
	}
	int size() { return data.size(); }
	bool empty() { return data.empty(); }
	void push_back(string x) { data.insert(x); }
	void erase(string x) { data.erase(x); }
};
